<!DOCTYPE html>
<html>
<head>
    <title>E8NET</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <include file="./App/Admin/View/Include/css.html" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/compiled/tables.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<include file="./App/Admin/View/Include/navbar.html" />
<include file="./App/Admin/View/Include/menu.html" />


<!-- main container -->
<div class="content">

    <div class="container-fluid">
        <div id="pad-wrapper">

            <!-- users table -->
            <div class="table-wrapper users-table section">


                <div class="row-fluid head">
                    <div class="span12 head-pancel">
                        二级学院/专业管理
                    </div>
                </div>
                <div class="row-fluid filter-block">
                    <div class="pull-right">
                        <a href="{:U('Depart/add_bj')}" class="btn-flat white new-product add-user">+ 添加班级</a>
                    </div>
                    <div class="pull-right">
                        <a href="{:U('Depart/add_zy')}" class="btn-flat white new-product add-user">+ 添加专业</a>
                    </div>

                    <div class="pull-right">
                        <a href="{:U('Depart/add_xy')}" class="btn-flat white new-product add-user">+ 添加二级学院</a>
                    </div>



                </div>




                <div class="row-fluid">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th class="span1">序号</th>

                            <th class="span3">
                                <span class="line"></span>名称
                            </th>

                            <th class="span2 align-right">
                                <span class="line"></span>操作
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name= "DepartList" item = "depart" >
                            <tr>
                                <td>{$key+1}</td>
                                <td>{$depart.name}</td>
                                <td class="align-right">
                                    <if condition="$depart.grade eq 0"><a href="{:U('Depart/edit_xy',array('id'=>$depart['id']))}">修改</a>&nbsp;
                                        <elseif condition="$depart.grade eq 1"/><a href="{:U('Depart/edit_zy',array('id'=>$depart['id']))}">修改</a>&nbsp;
                                        <else /><a href="{:U('Depart/edit_bj',array('id'=>$depart['id'],'f_id'=>$depart['f_id']))}">修改</a>&nbsp;
                                    </if>
                                    <!--<a href="{:U('Depart/edit',array('id'=>$depart['id'],'f_id'=>$depart['f_id']))}">修改</a>&nbsp;-->
                                    <a href="javascript:void(0);" onclick="return delConfirm('__APP__/Depart/del/id/{$depart.id}/f_id/{$depart.f_id}','对应记录被删除')">删除</a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- end users table -->


        </div>
    </div>
</div>
<!-- end main container -->

<include file="./App/Admin/View/Include/js.html" />
<script>

</script>

</body>
</html>